package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Strategy;
import cn.wolfcode.trip.base.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IStrategyService {

    PageInfo query(QueryObject qo);

    void saveOrUpdate(Strategy entity);

    List<Strategy> listAll();

    Strategy getById(Long id);

    List<Strategy> queryForStrategy(QueryObject qo);

    /**
     * 跟新点赞数
     * @param relationId 攻略Id
     */
    void updateLikeNum(Long relationId);

    /**
     * 取消点赞的方法
     * @param relationId
     */
    void updateByDeleteLikeNum(Long relationId);

}
